define(['../../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout', function($scope,$location,$interval,$timeout) {
    	$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','case_src_lib'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','61'); 	//显示底部文字
    	
    	NPLCacheData.firstStepData = null;
    	NPLCacheData.secondStepData = null;
    	NPLCacheData.thirdStepData = null;
    	//立即申请免息贷
    	$scope.applyforNow = function(){
//    		//判断有没有登录
    		if(transData.sessionId != null && transData.mobileNo != ""){
    			if(transData.userType === '1'){
    				$scope.$emit("goNext","/applyNpl");
    			}else{
					FIREFLY("对不起，您还不是律师用户！", "请先在'个人信息'中升级为律师用户","",function(){});
    			}
    		}else{
    			$scope.$emit("goNext","/login");
    		}
    	}
        $scope.$apply();
    }];
});